package com.wcy.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.wcy.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wcy.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-29
 */
public interface PermissionMapper extends BaseMapper<Permission> {
    @Select("select * from permission p,role_permission r where p.permission_id=r.permission_id and r.role_id=#{roleId}")
    List<Permission> selectPermissionByRoleId(Integer roleId);
}

